import 'package:flutter/material.dart';


import 'package:flutter_localizations/flutter_localizations.dart';

//import routes
import 'routes/index.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,  //隐藏debug图标
      //routes
      initialRoute: '/login',
      onGenerateRoute: onGenerateRoute,
      //国际化
      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate
      ],
      supportedLocales: [
        const Locale('zh', 'CH'),
        const Locale('en', 'US')
      ],
    );
  }
}